package com.yihu.dataService.hessian.mongodb.interfaceService;

import com.yihu.beans.ResultVO;
import com.yihu.beans.dic.Config;
import com.yihu.beans.dic.DatadicQuery;
import com.yihu.beans.dic.Resource;
import com.yihu.beans.dic.ResultCode;

/**
 * 
 * @author Aaron
 *
 */
public interface DataDictionaryHService {
	//config
	public ResultVO addDataConfig(Config config);
	public ResultVO deleteDataConfig(Config config);
	public Object getDataConfig(Config config);
	public ResultVO updateDataConfig(Config config);
	public Object getDataConfigs(DatadicQuery query);
	
	//resource
	public ResultVO addDataResource(Resource resource);
	public ResultVO deleteDataResource(Resource resource);
	public Object getDataResource(Resource resource);
	public ResultVO updateDataResource(Resource resource);
	public Object getDataResources(DatadicQuery query);
	public Object getChildrenByParent(DatadicQuery dicQuery);
	public Object getParentsByCurrentId(String id);
	public Resource getDicByPath(DatadicQuery query);
	
	//resultCode
	public ResultVO addDataResultCode(ResultCode resultCode);
	public ResultVO deleteDataResultCode(ResultCode resultCode);
	public Object getDataResultCode(ResultCode resultCode);
	public ResultVO updateDataResultCode(ResultCode resultCode);
	public Object getDataResultCodes(DatadicQuery query);
}
